// 具体业务代码文件中
import http from '@/common/http.js' // 上一步封装axios的路径中
export function requestDemo() {
	return http.get('/dish/group-by-category/restaurant/1')
}
//获取指定餐厅的信息
export function getRestaurantInfo(id) {
	return http.get(`/restaurant/${id}`)
}

// 获取指定餐厅下的菜品列表
export function getDishList(id) {
	return http.get(`/dish/group-by-category/restaurant/${id}`)
}

// 获取所有的餐厅列表
export function getRestaurantList() {
	return http.get('/restaurant')
}
